﻿using System;
using System.Collections.ObjectModel;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    class InstructionCollection : Collection<IInstruction>, IInstructionCollection
    {
        public InstructionCollection(Mono.Collections.Generic.Collection<Mono.Cecil.Cil.Instruction> collection)
        {
            foreach (var item in collection)
            {
                this.Add(new Instruction(item));
            }
        }

        #region IInstructionCollection Members

        public void AddRange(System.Collections.ICollection values)
        {
            throw new NotImplementedException();
        }

        public new void Remove(IInstruction value)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
